package com.mad.game.backend.entities;

public abstract class GameEntity {

	private GameEntityProperties properties ;

	public GameEntityProperties getProperties() {
		return properties;
	}

	public void setProperties(GameEntityProperties properties) {
		this.properties = properties;
	} 
	
	public GameEntity(GameEntityProperties props) {
		this.setProperties(props);
	}

	public int getHealth() {
		return properties.getHealth();
	}

	public void setHealth(int health) {
		properties.setHealth(health);
	}

	public boolean isDead() {
		return properties.isDead();
	}

	public void setDead(boolean isDead) {
		properties.setDead(isDead);
	}

	public void changeHealth(int delta) {
		properties.changeHealth(delta);
	}

	public int getJumpHeight() {
		return properties.getJumpHeight();
	}

	public void setJumpHeight(int jumpHeight) {
		properties.setJumpHeight(jumpHeight);
	}

	public int getSpeed() {
		return properties.getSpeed();
	}

	public void setSpeed(int speed) {
		properties.setSpeed(speed);
	}

	public void die() {
		properties.die();
	}
	
}
